import request from "@/utils/request";

// 获取待办列表
export const getList = (params) => request.get("/biz/todoProgress/list", { params });

// 标记为已处理
export const changeState = (data) => request.put(`/biz/todoProgress/status`, data);
// 我的待办统计
export const getMyTodoCount = () => request.get("/biz/todoProgress/statusCount");

// 获取我的待审批列表
export const getMyApprovalList = (params) => request.get("/biz/approval/my/pending", { params });
// 获取我的已审批列表
export const getMyApprovedList = (params) => request.get("/biz/approval/my/approved", { params });

// 我的审批统计
export const getMyApprovalCount = (params) => request.get("/biz/approval/my/count", { params });

// 我的已提交 
export const getMySubmittedList = (params) => request.get("/biz/approval/my/submitted", { params });